package com.foo.common.base.utils;

import java.io.File;
import java.io.IOException;

import com.foo.common.base.utils.laboratory.imageUtils.ImageLoader;

public class ImageHelper {
	public static void main(String[] args) throws IOException {
		File file = ImageLoader.fromFile("D:\\tmp\\test\\test.png")
				.crop(20, 100, 50, 200)
				.writeToFile(new File("C:\\Users\\Steve\\Desktop\\test.jpg"));
		System.out.println(file.getName());
		;
	}
}
